import httpInstance from "@/utils/http";


export const  getCategory=(map)=>{
    return httpInstance({
        method: 'post',
        url: 'out/list',
        data: map
    })
}
export const  getBrands=()=>{
    return httpInstance({
        method: 'get',
        url: 'brand/list'
    })
}

export const getUsers=()=>{
    return httpInstance({
        method: 'get',
        url: 'user/list',
    })
}
export const addOrder=(outOrder)=>{
    return httpInstance({
        method: 'post',
        url: 'out/add',
        data: outOrder
    })
}
export const updateOrder=(outOrder)=>{
    return httpInstance({
        method: 'put',
        url: 'out/update',
        data: outOrder
    })
}
export const deleteEntity=(ids)=>{
    return httpInstance({
        method: 'delete',
        url: 'out/delete',
        data: ids
    })
}

